package com.kady.service;

import com.kady.entity.Order;
import com.kady.entity.OrderDeatil;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/3/27
 * \* Time: 13:48
 * \* 千峰JAVA2101班
 * \* Description: 订单业务层
 * \
 */
public interface OrderService {

    List<Order> getOrderList() throws SQLException, InvocationTargetException, IllegalAccessException;

    Object settleOrder(String orderId) throws SQLException;

    List<OrderDeatil> getDetailList(String orderId,String userId) throws SQLException, InvocationTargetException, IllegalAccessException;

    long countDetailsById(String foodId) throws SQLException;
}
